﻿using System.ComponentModel.DataAnnotations;

namespace ValidationProblemTracking.Models
{
    public class ValidationProblemReportFormModel
    {
        [Key]
        [Ganss.Excel.Ignore]
        public Guid? Key { get; set; }
        [Ganss.Excel.Column(1, "单号")]
        public string? ApplicationNumber { get; set; }
        [Ganss.Excel.Ignore]
        public string? ProcInstId { get; set; }
        [Ganss.Excel.Column(13, "当前状态")]
        public string CurrentStatus { get; set; }
        [Ganss.Excel.Ignore]
        public string? SubmitByID { get; set; }
        [Ganss.Excel.Ignore]
        public string? SubmitByName { get; set; }
        [Ganss.Excel.Column(11, "申请人")]
        public string? SubmitByStr => SubmitByID?.Trim() + " " + SubmitByName?.Trim();
        [Ganss.Excel.Column(12, "当前处理人")]
        public string? ApplicantName { get; set; }

        [Ganss.Excel.Column(7, "提交时间")]
        public DateTime? ApplicantDate { get; set; }
        [Ganss.Excel.Column(2, "验证启动单号")]
        public string? VerifyStartFolio { get; set; }
        [Ganss.Excel.Ignore]
        public string? VerifyStartProcInstId { get; set; }
        [Ganss.Excel.Column(3, "产品线")]
        public string? ProductLine { get; set; }
        [Ganss.Excel.Column(4, "项目名称")]
        public string? ProjectName { get; set; }
        [Ganss.Excel.Column(5, "产品型号")]
        public string? ProductModel { get; set; }
        [Ganss.Excel.Column(6, "试制批次")]
        public string? TrialManufactureBatch { get; set; }
        [Ganss.Excel.Column(8, "问题定位")]
        public string? ProblemPositioning { get; set; }
        [Ganss.Excel.Column(9, "停线判断")]
        public string? LineStopDecide { get; set; }
    }
}
